//
//  BNDOfficeDocAlert.h
//  OfficeDoc
//
//  Created by pie on 2022/4/17.
//  Copyright © 2022 pie. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BNDOfficeDocKit.h"

typedef NS_ENUM(NSInteger, LKCustomButton) {
    LKCustomButtonLeft    = 0,  //左边按钮
    LKCustomButtonRight   = 1,  //右边按钮
    LKCustomButtonClose   = 2,  //取消按钮
};

NS_ASSUME_NONNULL_BEGIN
@interface BNDOfficeDocAlert : UIView

@property (nonatomic, strong, readonly) UILabel   *alertContentLabel;   /**<内容>*/
@property (nonatomic, strong, readonly) UIButton  *leftBtn;             /**<左按钮>*/
@property (nonatomic, strong, readonly) UIButton  *rightBtn;            /**<左按钮>*/
@property (nonatomic, strong, readonly) UIButton  *closeBtn;            /**<关闭按钮>*/

/**
 初始化
 
 @param content 内容
 @param leftTitle 左边文案
 @param rigthTitle 右边文案
 @param actionHandler 点击回调
 */
- (instancetype)initWithTitle:(NSString *)content
              leftButtonTitle:(NSString *)leftTitle
             rightButtonTitle:(NSString *)rigthTitle
                  clickAction:(void (^)(LKCustomButton clickNum))actionHandler;

/**
 显示

 @param displayView 显示的view
 */
- (void)show:(UIView*)displayView;


/// 移除
- (void)dismissAlert;


@end

NS_ASSUME_NONNULL_END
